package cn.com.miao.lynx.plugin.push.properties;

import cn.com.miao.lynx.plugin.push.model.PushClientConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * MessagePushProperties
 *
 * @title: MessagePushProperties
 * @description:
 * @author: dengmiao
 * @create: 2020-01-14 14:00
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = MessagePushProperties.PUSH_PREFIX)
public class MessagePushProperties {

    /**
     * push 配置前缀
     */
    public static final String PUSH_PREFIX = "lynx.push";
    /**
     * 极光推送客户端配置
     */
    private PushClientConfig client;
    /**
     * 多个推送客户端配置集合
     */
    private Map<String, PushClientConfig> multiple;
    /**
     * 配置是否生产环境推送，适用IOS平台
     */
    private boolean production = false;
}
